module.exports = async (req, res) => {
  // res.send('ppp');
  //从数据库中查询所有分类信息，返回给客户端
  const mongoose = require('mongoose');
  const Category = require('../../models/Category');
  const items = await Category.find().populate('parent').limit(10);
  res.send(items);
}
